export function sleep(time: number = 10) {
    return new Promise((resolve) => {
        setTimeout(() => {
            resolve(true);
        }, time);
    });
}

export function clamp(value: number, min: number, max: number) {
    return Math.min(Math.max(value, min), max)
}
